// <copyright file="CategoryAxis.cs" company="YUIAsp.Net">
// Copyright (c) 2009 All Right Reserved
// </copyright>
// <author>raul popescu</author>
// <email>dev@yuiasp.net</email>
// <date>2009-01-30</date>
// <summary>YUIAsp.Net File</summary>

using System.Collections.Generic;

namespace YUIAspNet
{
    /// <summary>
    /// Represents a chart category axis
    /// </summary>
    public class CategoryAxis : ChartAxis
    {
        private IList<string> _categoryNames;
        /// <summary>
        /// Initializes a new instance of the <see cref="CategoryAxis"/> class.
        /// </summary>
        public CategoryAxis() : base("category") { }

        /// <summary>
        /// Gets or sets the category names.
        /// </summary>
        /// <value>The category names.</value>
        public IList<string> CategoryNames 
        { 
            get
            {
                if(_categoryNames == null)
                    _categoryNames = new List<string>();

                return _categoryNames;
            }
        }
    }
}
